<template>
 <CommentListHeader title="全部评价"/>
  <CommentView :comment="item" v-for="(item,index) in comment" :key="index" />
</template>

<script setup lang="ts">
import CommentListHeader from "@/components/PubHeaderComponent.vue"
import {getGoodsAllComment} from "@/api/Goods/Goods.ts";
import {onMounted, ref} from "vue";
import CommentView from "@/views/GoodsView/components/CommentView.vue";
const comment=ref([])
onMounted(async ()=>{
  const res=await getGoodsAllComment()
  if(res.status==200){
    comment.value=res.data
  }
})
</script>

<style scoped lang="less">

</style>